22 #if DISTORTION_CORRECTION || defined(DOXYGEN) 37 void enable(
bool permanent =
true);
38 void disable(
bool permanent =
true);
49 int32_t
correct(int32_t x, int32_t y, int32_t z)
const;
58 void set(
float x,
float y,
float z);
71 #if DRIVE_SYSTEM == DELTA 75 int32_t xCorrectionSteps, xOffsetSteps;
76 int32_t yCorrectionSteps, yOffsetSteps;
79 #if !DISTORTION_PERMANENT 84 #endif //DISTORTION_CORRECTION int32_t getMatrix(int index) const
Definition: Distortion.cpp:140
bool isEnabled()
Definition: Distortion.h:52
int32_t zMaxSteps()
Definition: Distortion.h:55
void disable(bool permanent=true)
Definition: Distortion.cpp:113
void init()
Definition: Distortion.cpp:76
bool isCorner(fast8_t i, fast8_t j) const
Definition: Distortion.cpp:157
int32_t zEnd
Definition: Distortion.h:78
bool measure(void)
Definition: Distortion.cpp:182
Distortion()
Definition: Distortion.cpp:73
void extrapolateCorner(fast8_t x, fast8_t y, fast8_t dx, fast8_t dy)
Definition: Distortion.cpp:169
Handle distortion related stuff.
Definition: Distortion.h:33
void enable(bool permanent=true)
Definition: Distortion.cpp:104
int32_t step
Definition: Distortion.h:72
void extrapolateCorners()
Definition: Distortion.cpp:174
void reportStatus()
Definition: Distortion.cpp:126
int32_t zStart
Definition: Distortion.h:78
INLINE int32_t extrapolatePoint(fast8_t x1, fast8_t y1, fast8_t x2, fast8_t y2) const
Definition: Distortion.cpp:165
void resetCorrection()
Definition: Distortion.cpp:130
bool enabled
Definition: Distortion.h:82
int matrixIndex(fast8_t x, fast8_t y) const
Definition: Distortion.cpp:136
void showMatrix()
Definition: Distortion.cpp:421
void updateDerived()
Definition: Distortion.cpp:89
int8_t fast8_t
Definition: HAL.h:160
#define INLINE
Definition: HAL.h:37
int32_t matrix[DISTORTION_CORRECTION_POINTS *DISTORTION_CORRECTION_POINTS]
Definition: Distortion.h:80
#define DISTORTION_CORRECTION_POINTS
Definition: Configuration.h:1562
void setMatrix(int32_t val, int index)
Definition: Distortion.cpp:147
int32_t radiusCorrectionSteps
Definition: Distortion.h:73
int32_t correct(int32_t x, int32_t y, int32_t z) const
Compute distortion correction at given position.
Definition: Distortion.cpp:276